package com.example.chesswithnet.Entity;


import javafx.geometry.Point2D;

public class MoveRecord {

    private Chess chess;  //移动的棋子
    private Point2D point2D;  //移动棋子的最新坐标
    private Chess chess1;  //被吃的棋子

    public MoveRecord(Chess chess, Point2D point2D) {
        this.chess = chess;
        this.point2D = point2D;
        this.chess1 = null;
    }

    public MoveRecord(Chess chess, Point2D point2D, Chess chess1) {
        this.chess = chess;
        this.point2D = point2D;
        this.chess1 = chess1;
    }

    public Chess getChess() {
        return chess;
    }

    public Chess getChess1() {
        return chess1;
    }

    public void setChess1(Chess chess1) {
        this.chess1 = chess1;
    }

    public void setChess(Chess chess) {
        this.chess = chess;
    }

    public Point2D getPoint2D() {
        return point2D;
    }

    public void setPoint2D(Point2D point2D) {
        this.point2D = point2D;
    }

    @Override
    public String toString() {
        return "MoveRecord{" +
                "chess=" + chess +
                ", point2D=" + point2D +
                ", chess1=" + chess1 +
                '}';
    }
}
